# Copyright 2023 Leo <lipf160627@163.com>. All rights reserved.
# Use of this source code is governed by a MIT style
# license that can be found in the LICENSE file.

IMAGE := ccr.ccs.tencentyun.com/pudding1201/$(APP_NAME)
TAG := latest

.PHONY: docker.build
docker.build:
	@cargo build --release
	-@docker rmi $(IMAGE):$(TAG) -f
	@docker build -t $(IMAGE):$(TAG) .

.PHONY: docker.clean
docker.clean:
	@docker rmi $(IMAGE):$(TAG) -f
